package com.woody.aggregate.msgsendrule.enums;

import lombok.Getter;
import lombok.RequiredArgsConstructor;


@Getter
@RequiredArgsConstructor
public enum ClientEnum {

    HM_APP("HM-APP", "惠盟APP"),
    HM_PM("HM-PM", "惠盟小程序"),;

    /**
     * 用户类型
     */
    private final String type;

    /**
     * 类型描述
     */
    private final String desc;

    public static ClientEnum getByType(String client) {
        for (ClientEnum value : ClientEnum.values()) {
            if(value.getType().equals(client)){
                return value;
            }
        }
        return null;
    }
}
